
<div class='fui-page fui-page-current page-commission-register'>
	<img style="width:100%;position: relative" ng-src="{{tomedia(pagedata.setting.regbg) || '../addons/jy_weishop/resource/images/agent-top.jpg'}}" />
	<div ng-if="pagedata.member" class='fui-content' >
		<div ng-if="pagedata.member.status==0" class='content-info' >
            <i class='icon icon-time'></i>
            <br/><span class="">谢谢您的支持，请等待审核！</span>
            <br/><a class="btn btn-danger" href="javascript:;" ng-click="access_json('jy_weishop/index/')">去商城逛逛</a>
        </div>
		<div ng-if="pagedata.member.status==1" class='content-info' >
            <i class='icon icon-time'></i>
            <br/><span class="">恭喜您，您的代理申请已审核通过！</span>
            <br/><a class="btn btn-danger" href="javascript:;" ng-click="access_json('/agent.index/')">前往代理中心</a>
        </div>
		<div ng-if="pagedata.member.status==2" class='content-info' >
            <i class='icon icon-time'></i>
            <br/><span class="">非常抱歉，您的代理申请被管理员拒绝！</span>
            <br/><a class="btn btn-danger" href="javascript:;" ng-click="access_json('jy_weishop/index/')">去商城逛逛</a>
        </div>
	</div>
    <div ng-if="!pagedata.member" class='fui-content'>
        <div class="fui-cell-group" style='margin-top:0'>
            <div class="fui-cell-title">
                请填写申请信息
            </div>
            <div class='fui-cell must'>
                <div class='fui-cell-label'>姓名</div>
                <div class='fui-cell-info'><input type="text" class='fui-input' ng-model="pagedata.item.realname" placeholder="请填写真实姓名，用于结算" /></div>
            </div>
            <div class='fui-cell must'>
                <div class='fui-cell-label'>手机号</div>
                <div class='fui-cell-info'><input type="tel" class='fui-input' ng-model="pagedata.item.mobile" placeholder="请填写手机号码方便联系" /></div>
            </div>
            <div class='fui-cell'>
                <div class='fui-cell-label'>微信号</div>
                <div class='fui-cell-info'><input type="text" class='fui-input' ng-model="pagedata.item.wechat" placeholder="请填写微信号"  /></div>
            </div>
            <div class="fui-cell-group">
                <div class="fui-cell small ">
                    <div class="fui-cell-info">
                        <label class="checkbox-inline">
                            <input type="checkbox" class="fui fui-checkbox fui-checkbox-danger" ng-model="pagedata.item.agree" /> 我已经阅读并了解了<a id="btn-apply" ng-click="pagedata.show_content=true" style="color:#337ab7;">【{{pagedata.agree.title}}】</a>。
                        </label>

                    </div>
                </div>

            </div>

            <div ng-show="pagedata.show_content" class="modal-bg pop-apply-hidden" >
                <div class="modal-content" style="top:10%;width:90%;left:5%">
                    <div class="closebtn" ng-click="pagedata.show_content=false" style="opacity:1;"><i class="icon icon-cuowu"></i></div>
                    <div class="news-body">
						<div class="title">{{pagedata.agree.title}} / <small>Read &nbsp;Ggree</small></div>
                        <div class="text" ng-bind-html="trust(pagedata.agree.content)"></div>
                    </div>
					<div class="modal-footer">
                            <div ng-click="pagedata.show_content=false" class="mod-check" style="width: 100%; margin: 0;">我已阅读</div>
                    </div>
                </div>
            </div>

        </div>
        <div class='btn btn-success block btn-submit' style="margin-top:2rem" ng-click="post(pagedata.item,'apply')">申请成为代理商</div>

	</div>
</div>

